package com.xuan.webfinally.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 边坡设备信息表
 * </p>
 *
 * @author gyuxuan
 * @since 2025-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("slope_gateway_info")
@ApiModel(value="SlopeGatewayInfo对象", description="边坡设备信息表")
public class SlopeGatewayInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "逻辑主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备名称")
    @TableField("gateway_sn")
    private String gatewaySn;

    @ApiModelProperty(value = "部门ID")
    @TableField("dept_id")
    private Integer deptId;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("gateway_info")
    private String gatewayInfo;

    @TableField("gateway_online")
    private Integer gatewayOnline;

    @ApiModelProperty(value = "报警开关状态")
    @TableField("alarm_switch")
    private Integer alarmSwitch;

    @ApiModelProperty(value = "电量")
    @TableField("battery_charge")
    private String batteryCharge;


}
